package cn.lcc.ymcc.enumcode;

public enum GlobalErrorCodeEnum {
    /**系统异常**/
    SYSTEM_ERROR("2010","系统异常"),

    /**请求参数异常**/
    PARAM_ERROR("3010","请检查请求参数"),

    /**未知异常**/
    UNKNOWN_ERROR("4010","系统繁忙请求稍后再试"),
    /**主动抛出业务异常**/
    BUSINESS_ERROR("5010","");


    private String code;
    private String msg;

    GlobalErrorCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "GlobalErrorCodeEnum{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
